package com.parse.ast;

import com.lex.TokenType;

public class Modify {

    private ModifyType type;

    public Modify(ModifyType type){
        this.type = type;
    }

    public TokenType getModifyTokenType(){
        if(type.equals(ModifyType.PUBLIC)){
            return TokenType.PUBLIC;
        } else if (type.equals(ModifyType.PRIVATE)) {
            return TokenType.PRIVATE;

        }else if (type.equals(ModifyType.PROTECTED)){
            return TokenType.PROTECTED;
        }else {
            return TokenType.DEFAULT;
        }
    }

    public enum ModifyType{
        PUBLIC,
        PRIVATE,
        PROTECTED,
        DEFAULT
    }
}
